package com.tanhua.manager.api.db;

import com.tanhua.domain.db.UserFreeze;
import com.tanhua.mapper.UserFreezeMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

@Service
public class UserFreezeApiImpl implements UserFreezeApi {
    @Autowired
    private UserFreezeMapper userFreezeMapper;

    @Override
    public void saveUser(UserFreeze userFreeze) {
        userFreezeMapper.insert(userFreeze);
    }

    @Override
    public UserFreeze findById(Long userId) {
        UserFreeze userFreeze = userFreezeMapper.selectById(userId);
        return userFreeze;
    }

    @Override
    public void updateUser(UserFreeze userFreeze) {
        userFreezeMapper.updateById(userFreeze);

    }
}
